define(function(require, exports, module) {
    "use strict"; 
     var $ = require("$"),
        app = require("dist/application/app"),
        config = app.config,
        method = app.method;
    var echarts = require("dist/echarts/init.js");
    var $v_echarts=$("#v_echarts"),$area_charts=$("#area_charts"),$area_pie_charts=$("#area_pie_charts"),
    $sex_pie_charts=$("#sex_pie_charts");
    $v_echarts.length && (function(e) {
        var path = $v_echarts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.line("v_echarts", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 
    $area_charts.length && (function(e) {
        var path = $area_charts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                require.async(['dist/echartmap/init.js'], function(echartmap) {
                    echartmap.maps("area_charts", d) ;
                });
            }else{
                config.msg.error(d.message);
            }
        })

    })(); 
    $area_pie_charts.length && (function(e) {
        var path = $area_pie_charts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.pie("area_pie_charts", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 
    $sex_pie_charts.length && (function(e) {
        var path = $sex_pie_charts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.pie("sex_pie_charts", d.data)
            }else{
                config.msg.error(d.message);
            }
        })

    })(); 
  });